import request from '@/service/index.js'

export const addBrand = (data) => {
  return request.post('/brand/add/brand', data)
}

export const listBrand = (brandName, page, pageSize) => {
  return request.get('/brand/list', {
    params: {
      brandName: brandName,
      page: page,
      pageSize: pageSize,
    },
  })
}

export const deleteBrand = (brandId) => {
  return request.delete(`/brand/delete/${brandId}`)
}

export const updateBrand = (data) => {
  return request.put(`/brand/update/brand`, data)
}
